package com.example.kotlindemo.函数

fun interface Action {
    fun run()
}

fun runAction(a:Action) = a.run()

fun main(){
    runAction(object :Action{
        override fun run() {
            println("ss")
        }
    })


    runAction{
        println("ok")
    }

    listOf(5,11,22,100).filter {
        it > 10
    }.forEach{
        println(it)
    }
}